package com.gobo.eduservice.clients;


import com.gobo.commonutils.R;
import com.gobo.eduservice.clients.degradeimpl.AliyunVodClientImp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-vod",fallback = AliyunVodClientImp.class)
@Component
public interface AliyunVodClient {

    @DeleteMapping("/eduvod/video/delete/{videoId}")
    public R deleteVideo(@PathVariable("videoId") String videoId);
    @DeleteMapping("/eduvod/video/deleteList")
    public R deleteVideoList(@RequestParam List<String> videoSources);

}
